from django.contrib.syndication.feeds import Feed
from blog.models import *

class NajnowszePosty(Feed):
    title = 'MediaFrame -- Blog'
    #link = '/blog'
    description = 'najnowsze wpisy'

    description_template = 'blog/rss/news_description.html'
    title_template = 'blog/rss/news_title.html'

    def items(self):
	return News.objects.order_by('-dataDodania')[:10]
	





